package com.hzhr.iot.user.dao.mapper.custom;

import com.hzhr.iot.user.entity.RoleEntity;
import com.hzhr.iot.user.entity.ext.RoleEntityExt;
import com.hzhr.iot.user.queryModel.custom.RoleCustomQueryModel;

import java.util.List;

public interface RoleEntityCustomMapper {
    //批量新增
    int insertBatch(List<RoleEntity> recordList);
    //批量更新
    int updateBatch(List<RoleEntity> recordList);
    //批量更新
    int updateBatchSelective(List<RoleEntity> recordList);
    //通用查询
    List<RoleEntityExt> selectExt(RoleCustomQueryModel queryModel);
    //通用查询数量
    int selectCount(RoleCustomQueryModel queryModel);
    //通用修改属性
    int updateProps(RoleCustomQueryModel queryModel);
    //通用删除
    int delete(RoleCustomQueryModel queryModel);

    //自定义查询
    List<RoleEntityExt> selectExt1(RoleCustomQueryModel queryModel);
    int selectCount1(RoleCustomQueryModel queryModel);
    List<RoleEntityExt> selectExt2(RoleCustomQueryModel queryModel);
    int selectCount2(RoleCustomQueryModel queryModel);
}
